package main

import (
	cli "github.com/urfave/cli/v2"
)

var RootFlags = []cli.Flag{
	&cli.StringFlag{
		Name:        "platon.ws",
		Aliases:     []string{"p.ws"},
		Usage:       "platon node ws rpc",
		Value:       SpecialNodeConfig.PlatOnServer,
		Destination: &SpecialNodeConfig.PlatOnServer,
	},

	&cli.StringFlag{
		Name:        "http",
		Usage:       "http server",
		Value:       SpecialNodeConfig.HttpServer,
		Destination: &SpecialNodeConfig.HttpServer,
	},

	&cli.StringFlag{
		Name:        "center.rpc",
		Aliases:     []string{"c.rpc"},
		Usage:       "center rpc server",
		Value:       RpcConfig.CenterUrl,
		Destination: &RpcConfig.CenterUrl,
	},

	&cli.StringFlag{
		Name:        "monitor.rpc",
		Aliases:     []string{"m.rpc"},
		Usage:       "monitor rpc server",
		Value:       RpcConfig.RpcUrl,
		Destination: &RpcConfig.RpcUrl,
	},
}
